package com.yayun.merchant.mapper;

import java.util.List;
import com.yayun.merchant.domain.OmsOrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OmsOrderItemMapper {
    /**
     * 查询订单商品列表
     */
    List<OmsOrderItem> selectOrderItemList(OmsOrderItem orderItem);

    /**
     * 根据订单ID查询订单商品
     */
    List<OmsOrderItem> selectOrderItemsByOrderId(Long orderId);

    /**
     * 新增订单商品
     */
    int insertOrderItem(OmsOrderItem orderItem);

    /**
     * 批量新增订单商品
     */
    int batchInsertOrderItems(List<OmsOrderItem> orderItems);

    /**
     * 修改订单商品
     */
    int updateOrderItem(OmsOrderItem orderItem);

    /**
     * 删除订单商品
     */
    int deleteOrderItemById(Long id);

    /**
     * 批量删除订单商品
     */
    int deleteOrderItemsByOrderId(Long orderId);
}